package com.dingup.api.model.sys;

import java.util.Date;
import java.util.List;

public class SysUser{
    private Integer id;

    private String userId;

    private String userAccount;

    private String userPassword;

    private String userName;

    private String unionId;

    private String mobile;

    private String email;

    private Date createTime;

    private String createUserId;

    private Date lastLoginTime;

    private Boolean ifFromDingtalk;

    private Boolean ifSysUser;

    private Boolean ifDelete;

    private Boolean ifActive;

    private String remark;

    private String dingtalkRoleName;

    private String createUserName;

    private String wechatName;

    private List<SysRole> roles;

    private List<SysDept> depts;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword == null ? null : userPassword.trim();
    }

    public String getDingtalkRoleName() {
        return dingtalkRoleName;
    }

    public void setDingtalkRoleName(String dingtalkRoleName) {
        this.dingtalkRoleName = dingtalkRoleName;
    }

    public List<SysRole> getRoles() {
        return roles;
    }

    public void setRoles(List<SysRole> roles) {
        this.roles = roles;
    }

    public Boolean getIfFromDingtalk() {
        return ifFromDingtalk;
    }

    public void setIfFromDingtalk(Boolean ifFromDingtalk) {
        this.ifFromDingtalk = ifFromDingtalk;
    }

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Boolean getIfSysUser() {
        return ifSysUser;
    }

    public void setIfSysUser(Boolean ifSysUser) {
        this.ifSysUser = ifSysUser;
    }

    public Boolean getIfDelete() {
        return ifDelete;
    }

    public void setIfDelete(Boolean ifDelete) {
        this.ifDelete = ifDelete;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public Boolean getIfActive() {
        return ifActive;
    }

    public void setIfActive(Boolean ifActive) {
        this.ifActive = ifActive;
    }

    public List<SysDept> getDepts() {
        return depts;
    }

    public void setDepts(List<SysDept> depts) {
        this.depts = depts;
    }

    public String getWechatName() {
        return wechatName;
    }

    public void setWechatName(String wechatName) {
        this.wechatName = wechatName;
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        SysUser u = (SysUser)obj;
        return userId.equals(u.getUserId());
    }

    public SysUser() {
    }
}